﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CNTVNow.Web.Helpers.ExtensionMethods
{
    public static class StringHelperExtension
    {
        public static string FormatWith(this string format, params object[] args)
        {
            if (format == null)
            {
                throw new ArgumentNullException("format");
            }
            return string.Format(format, args);
        }
        public static string FormatWith(this string format, IFormatProvider provider, params object[] args)
        {
            if (format == null)
            {
                throw new ArgumentNullException("format");
            }
            return string.Format(provider, format, args);
        }
    }
}